package deployr.domain;


public class UpdateMap extends ObjectMap {

	public UpdateMap(IUpdate update) {
		this("", update);
	}

	public UpdateMap(String contextPath, IUpdate update) {
		super(contextPath);
		put("projectKey", update.getProjectKey());
		put("updateKey", update.getUpdateKey());
		put("artifactId", update.getArtifactId());
		put("version", update.getVersion());
		put("created", time(update.getCreated()));
		put("status", string(update.getStatus()));
		put("index", update.index());
	}

}
